package pojo;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class MerchantApplication {
	
	public final static String WAIT_AUDIT = "audit";
	public final static String REJECT = "reject";
	public final static String BLACK_LIST = "black_list";
	public final static String WHITE_LIST = "white_list";
	
	private String id;
	private String name;
	private String idCard;
	private String avatar;
	private String address;
	private String status;
	private String rejectReason;
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS",locale = "zh" , timezone="GMT+8")  
	private Date updateTime; 
	
	public MerchantApplication() {
		super();
	}
	
	public MerchantApplication(String id, String name, String idCard,
			String avatar, String address, String status) {
		super();
		this.id = id;
		this.name = name;
		this.idCard = idCard;
		this.avatar = avatar;
		this.address = address;
		this.status = status;
	}
	
	public MerchantApplication(String id, String name, String idCard,
			String avatar, String address, String status, String rejectReason) {
		super();
		this.id = id;
		this.name = name;
		this.idCard = idCard;
		this.avatar = avatar;
		this.address = address;
		this.status = status;
		this.rejectReason = rejectReason;
	}
	

	public MerchantApplication(String id, String name, String idCard,
			String avatar, String address, String status, String rejectReason,
			Date updateTime) {
		super();
		this.id = id;
		this.name = name;
		this.idCard = idCard;
		this.avatar = avatar;
		this.address = address;
		this.status = status;
		this.rejectReason = rejectReason;
		this.updateTime = updateTime;
	}

	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getIdCard() {
		return idCard;
	}
	public void setIdCard(String idCard) {
		this.idCard = idCard;
	}
	public String getAvatar() {
		return avatar;
	}
	public void setAvatar(String avatar) {
		this.avatar = avatar;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getAddress() {
		return address;
	}
	public void setAddress(String address) {
		this.address = address;
	}

	public String getRejectReason() {
		return rejectReason;
	}

	public void setRejectReason(String rejectReason) {
		this.rejectReason = rejectReason;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	public String toString() {
		return "MerchantApplication [id=" + id + ", name=" + name + ", idCard="
				+ idCard + ", avatar=" + avatar + ", address=" + address
				+ ", status=" + status + ", rejectReason=" + rejectReason
				+ ", updateTime=" + updateTime + "]";
	}

	
	
}
